package com.woniu.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

/**
 * 交易流水表
 * @TableName transaction_record
 */
@TableName(value ="transaction_record")
@Data
public class Transaction implements Serializable {
    /**
     * 主键
     */
    @TableId(type = IdType.AUTO)
    private Long id;

    /**
     * 订单号
     */
    private String orderNumber;

    /**
     * 交易时间
     */
    private Date transactionTime;

    /**
     * 交易类型(Charge-充电,Payment-支付,Refund-退款)
     */
    private String transactionType;

    /**
     * 支付方式
     */
    private String paymentMethod;

    /**
     * 交易金额
     */
    private BigDecimal amount;

    /**
     * 充电桩id
     */
    private Long chargerId;

    /**
     * 客户id
     */
    private Long customerId;

    /**
     * 交易状态(Completed-已完成,Pending-处理中,Failed-失败)
     */
    private String transactionStatus;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;
} 